package cn.wolfcode.luowowo.article.service;


import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.DestinationQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDestinationService {
    PageInfo query(DestinationQuery qo);

    void setInfo(Destination destination);

    List<Destination> listToasts(Long parentId);

    void changeHotState(Long id, Integer hot);

    /**
     * 查询区域下所有地点
     *
     * @param rid
     * @return
     */
    List<Destination> listDestByRegionId(Long rid);

    List<Destination> listDests();

    /**
     * 查询区域下热门地点
     *
     * @param regionId
     * @return
     */
    List<Destination> listHotDestByRegionId(Long regionId);

    /**
     * 获取国家
     * @param destId
     * @return
     */
    Destination getCountry(Long destId);

    /**
     * 获取省份
     * @param destId
     * @return
     */
    Destination getProvince(Long destId);

    List<Destination> list();

}
